package com.demo.springSecurityJwt.controller;

import com.demo.springSecurityJwt.service.RedisService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Hanson
 * @date 2022/9/13 16:11
 */
@RestController
@RequestMapping(value = "/blue")
public class BlueController {

    @Resource
    private RedisService redisService;

    @GetMapping("/dashboard")
    public String getDashBoard() {
        return redisService.getDashBoard().toString();
    }
}
